package com.xiaoshuidi.cloud.module.rooms.convert.equipmentsupplier;

import cn.hutool.db.PageResult;
import com.xiaoshuidi.cloud.module.rooms.controller.admin.roomequipmentsupplier.vo.EquipmentSupplierCreateReqVO;
import com.xiaoshuidi.cloud.module.rooms.controller.admin.roomequipmentsupplier.vo.EquipmentSupplierImportVO;
import com.xiaoshuidi.cloud.module.rooms.controller.admin.roomequipmentsupplier.vo.EquipmentSupplierRespVO;
import com.xiaoshuidi.cloud.module.rooms.controller.admin.roomequipmentsupplier.vo.EquipmentSupplierUpdateReqVO;
import com.xiaoshuidi.cloud.module.rooms.pojo.EquipmentSupplier;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 供应商管理 Convert
 *
 * @author 承寓
 */
@Mapper
public interface EquipmentSupplierConvert {

    EquipmentSupplierConvert INSTANCE = Mappers.getMapper(EquipmentSupplierConvert.class);

    EquipmentSupplier convert(EquipmentSupplierCreateReqVO bean);

    EquipmentSupplier convert(EquipmentSupplierUpdateReqVO bean);

    EquipmentSupplierRespVO convert(EquipmentSupplier bean);

    EquipmentSupplier convert(EquipmentSupplierImportVO bean);

    List<EquipmentSupplierRespVO> convertList(List<EquipmentSupplier> list);

    List<EquipmentSupplier> convertList2(List<EquipmentSupplierImportVO> list);
}